package cn.itcalvin.sncoal.cth.mapper.main;

import cn.itcalvin.sncoal.cth.domain.InfoUser;
import cn.itcalvin.sncoal.cth.pojo.common.RespUserInfo;
import cn.itcalvin.sncoal.cth.pojo.req.user.ReqUserList;
import cn.itcalvin.sncoal.cth.pojo.req.user.ReqUserModify;
import cn.itcalvin.sncoal.cth.pojo.response.user.RespUserList;
import cn.itcalvin.tk.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InfoUserMapper extends BaseMapper<InfoUser> {

    int updateLoginPassword(@Param("idList") List<Long> idList, @Param("pwd") String pwd);

    /**
     * 用户列表
     * @param reqUserList
     * @return
     */
    List<RespUserList> list(@Param("reqUserList") ReqUserList reqUserList);

    int modify(@Param("reqUserModify") ReqUserModify reqUserModify,@Param("userInfo") RespUserInfo userInfo);
}